home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc Source Code / Memory / CWMemCfg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-22  |  1.6 KB  |  71 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        CWMemCfg.h
  3.  
  4.     Contains:    New Project prefix file for Memory subsystem.
  5.  
  6.     Owned by:    Ted Jucevic
  7.  
  8.     Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <5>     8/29/95    jpa        Enable optimization in nondebug build.
  13.                                     [1280301]
  14.          <4>      8/4/95    DM        Leak checking [1267956]
  15.          <3>     5/25/95    jpa        Turn traceback on. [1253324]
  16.          <2>     1/23/95    TJ        This is now the Project prefix file for
  17.                                     Memory.  This change was to allow for the
  18.                                     MM_DEBUG to be defined in a seperate file.
  19.          <1>     1/23/95    TJ        first checked in
  20.  
  21.     To Do:
  22.     In Progress:
  23.         
  24. */
  25.  
  26. #ifdef __MWERKS__
  27.     // Metrowerks precompiled headers:
  28.     #ifdef __powerc
  29.     #include <MacHeadersPPC>
  30.     #else
  31.     #include <MacHeaders68k>
  32.     #endif
  33.  
  34.     // Things already defined in the MPW precompiled header but not in CodeWarrior:
  35.     #define SystemSevenOrLater 1
  36.     #define ppcinterfaces            // GX headers want this, if using universal headers
  37.     #define mw_bug 1                // Enables temporary SOM fix 'til CodeWarrior compiler is fixed
  38.     
  39.     #undef OLDROUTINENAMES
  40.     #define OLDROUTINENAMES 0
  41.     #ifndef OLDROUTINELOCATIONS
  42.     #define OLDROUTINELOCATIONS 0
  43.     #endif
  44. #endif
  45.  
  46. #include "MemCnfig.h"
  47.  
  48. #include "MMDbgOpt.h"
  49.  
  50. #ifdef __MWERKS__
  51.     #if MM_DEBUG
  52.         #ifdef powerc
  53.         #pragma traceback on
  54.         #else
  55.         #pragma macsbug on
  56.         #pragma a6frames on
  57.         #endif
  58.     #else
  59.         #ifdef powerc
  60.         #pragma traceback off
  61.         #pragma scheduling on
  62.         #else
  63.         #pragma macsbug off
  64.         #pragma a6frames off
  65.         #endif
  66.         #pragma global_optimizer on
  67.         #pragma optimization_level 4
  68.         #pragma optimize_for_size on
  69.         #pragma peephole on
  70.     #endif
  71. #endif